package com.spider.admin.service.agent;

import com.spider.admin.conf.CommandExecResult;
import com.spider.admin.exception.SpiderException;
import org.springframework.scheduling.annotation.Async;

import java.io.File;

public interface AgentRunService {
    /**
     * 启动代理服务
     * @throws SpiderException
     */
    CommandExecResult startAgent() throws SpiderException;

    /**
     * 停止代理服务
     * @throws SpiderException
     */
    CommandExecResult stopAgent() throws SpiderException;


    /**
     * 重启代理服务
     * @throws SpiderException
     */
    CommandExecResult reloadAgent() throws SpiderException;

    /**
     * 测试代理配置
     * @throws SpiderException
     */
    CommandExecResult testAgentConf() throws SpiderException;
}
